package com.zhlb.zfba.modules.per.web;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.alibaba.fastjson.JSON;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.zhlb.zfba.common.config.Global;
import com.zhlb.zfba.common.persistance.Msg;
import com.zhlb.zfba.common.utils.DateUtil;
import com.zhlb.zfba.modules.per.bean.PoliceInfo;
import com.zhlb.zfba.modules.per.bean.PolicePathLog;
import com.zhlb.zfba.modules.per.bean.RoomInfo;
import com.zhlb.zfba.modules.per.bean.SuspectInfo;
import com.zhlb.zfba.modules.per.service.PoliceInfoService;
import com.zhlb.zfba.modules.per.service.PolicePathLogService;
import com.zhlb.zfba.modules.per.service.RoomInfoService;
import com.zhlb.zfba.modules.per.service.SuspectInfoService;

@Controller
@RequestMapping(value = "/room/roomInfo")
public class RoomInfoController {
	@Autowired
	RoomInfoService roomInfoService;
	@RequestMapping(value = {"getRoomInfo"})
	@ResponseBody
	public RoomInfo getRoomInfo(RoomInfo roomInfo) {
		//把roomName当做roomid用 
		RoomInfo roomInfoEntity =roomInfoService.getRoomInfo(roomInfo);
		return roomInfoEntity;
	}
}
